/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.wpi.first.wpilibj.templates.subsystems;

import edu.wpi.first.wpilibj.Jaguar;
import edu.wpi.first.wpilibj.command.Subsystem;
import edu.wpi.first.wpilibj.templates.commands.ManualDrive;

/**
 *
 * @author Jarrod Risley
 */
public class DrivetrainSubsystem extends Subsystem {
    /*
     * Global Class Variables
     */
    private Jaguar foreJaguar;
    private Jaguar rearJaguar;
    
    public DrivetrainSubsystem(int forePort, int rearPort) {
        
        foreJaguar = new Jaguar(forePort);
        rearJaguar = new Jaguar(rearPort);
        
    } // end DrivetrainSubsystem Constructor

    public void initDefaultCommand() {
        // Set the default command for a subsystem here.
        //setDefaultCommand(new MySpecialCommand());
        setDefaultCommand(new ManualDrive());
    } // end initDefaultCommand
    
    /**
     * Used for driving the robot.
     * @param input 
     */
    
    public void operatorControl(double input) {
        
        foreJaguar.set(input);
        rearJaguar.set(input);
        
    } // end operatorControl
} // end DrivetrainSubsystem
